import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import axios, { AxiosInstance } from 'axios'

Vue.config.productionTip = false
axios.defaults.baseURL = '/api'
Vue.use(v => {
  v.prototype.$axios = axios
})
declare module 'vue/types/vue' {
  interface Vue {
    $axios: AxiosInstance
  }
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
